package bean;

import java.util.Calendar;

/**
 * A base class for Post for manipulation of the data
 * @author Anne Lorayne, Laura Dutra
 *
 */
public class PostBean {
 
	
	private String ID;
	 
	private String title;
	private String content;
	private String date;
	private String lastMediaId;

	private String lastCommentId;
	 
	/**
	 * Constructor of the class
	 * @param ID
	 * @param content
	 */
	public PostBean(String ID, String title, String content, String date){
		this.ID = ID;
		this.title = title;
		this.content = content;
		this.date = date;
		lastMediaId = "0";
		lastCommentId = "0";
	}
	
	public PostBean(){};
	
	
	// ------Getters and Setters------
	
	public String getID() {
		return ID;
	}

	public void setID(String iD) {
		ID = iD;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the date
	 */
	public String getDate() {
		return date;
	}

	/**
	 * @param date the date to set
	 */
	public void setDate(String date) {
		this.date = date;
	}

	/**
	 * @return the lastMediaId
	 */
	public String getLastMediaId() {
		return lastMediaId;
	}

	/**
	 * @param lastMediaId the lastMediaId to set
	 */
	public void setLastMediaId(String lastMediaId) {
		this.lastMediaId = lastMediaId;
	}

	public String getLastCommentId() {
		return lastCommentId;
		
	}

	public void setLastCommentId(String commentId) {
		lastCommentId = commentId;
		
	}

}
 
